﻿@model MSDAL.Instrumenty

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Tworzenie instrumentu</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Instrumenty</h4>
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <div class="form-group">
            Nazwa Instrumentu:
            <div class="col-md-10">
                @Html.EditorFor(model => model.NazwaInstrumentu, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.NazwaInstrumentu, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            Domyślna cena dla ucznia:
            <div class="col-md-10">
                @Html.EditorFor(model => model.DomyslnaCenaDlaUcznia, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.DomyslnaCenaDlaUcznia, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            Domyślna stawka dla nauczyciela:
            <div class="col-md-10">
                @Html.EditorFor(model => model.DomyslnaStawkaDlaNauczyciela, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.DomyslnaStawkaDlaNauczyciela, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            Komentarz:
            <div class="col-md-10">
                @Html.EditorFor(model => model.Komentarz, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.Komentarz, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Stwórz" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Powrót do listy", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
